package cn.tedu.truetaste.controller;

import cn.tedu.truetaste.pojo.vo.SpuDetailStandardVO;
import cn.tedu.truetaste.pojo.vo.SpuListItemVO;
import cn.tedu.truetaste.service.IDishesService;
import cn.tedu.truetaste.service.ISpuService;
import cn.tedu.truetaste.web.JsonResult;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("dishes/spu/detail")
@Api(tags = "前台SpuDetail模块")
public class SpuDetailController {

    @Autowired
    private IDishesService dishesService;
    @Autowired
    private ISpuService spuService;

//    @GetMapping("/{spuId}")
//    @ApiOperation("根据spuId查询SpuDetail")
//    @ApiImplicitParam(value = "spuId",name="spuId",example = "1")
//    public JsonResult<SpuDetailStandardVO> getSpuDetailBySpuId(
//            @PathVariable Long spuId){
//        SpuDetailStandardVO spuDetailStandardVO=
//                spuService.getSpuDetailById(spuId);
//        return JsonResult.ok(spuDetailStandardVO);
//    }

}
